import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VueWechatTitle from 'vue-wechat-title'
// import Flex from 'lib-flexible'
import echarts from 'echarts'
import { Menu,Submenu } from 'element-ui';

import VueRouter from 'vue-router';
const routerPush = VueRouter.prototype.push
// VueRouter.prototype.push = function push(location) {
//   return routerPush.call(this, location).catch(error=> error)
// }
import componentsInstall from './components'


Vue.config.productionTip = false;
Vue.prototype.$echarts = echarts

Vue.component(Menu.name, Menu);
Vue.component(Submenu.name, Submenu);
Vue.use(VueWechatTitle)
Vue.use(componentsInstall)

new Vue({
  router, 
  render: h => h(App)
}).$mount('#app')
